package com.dao;

import com.bean.Recoding;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

public interface RecodingDao {
    void addRecoding(@Param("id") int id, @Param("username") String username,
                     @Param("question") String question, @Param("contact") String contact,
                     @Param("address") String address, @Param("date") Date date,
                     @Param("accender_name") String accender_name, @Param("sender") String sender);

    @Select("select * from recoding")
    List<Recoding> recodingList();

    void deleteRecodingById(@Param("id") int id);
}
